package com.hgkj.cloud.base.service;

import com.hgkj.cloud.base.common.PageInfo;
import com.hgkj.cloud.base.domain.TenantQuestionnaires;

import java.util.List;
import java.util.Map;

public interface TenantQuestionnairesService {

    int deleteByPrimaryKey(Long id);

    int insert(TenantQuestionnaires record);

    int insertSelective(TenantQuestionnaires record);

    TenantQuestionnaires selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TenantQuestionnaires record);

    int updateByPrimaryKey(TenantQuestionnaires record);

    List<Map<String, Object>> listQuestionnaires(PageInfo pi, Map<String, Object> map);

    long listQuestionnairesCount(Map<String, Object> map);

    TenantQuestionnaires findQuestionnaireById(Long id);

    List<TenantQuestionnaires> findQuestionnaireByTenantId(Map<String, Object> map);

    int delQuestionnaire(Long id);

    List<TenantQuestionnaires> findQnTaskQuestionnaires(PageInfo pi,Map<String, Object> map);

    long findQnTaskQuestionnairesCount(Map<String, Object> map);

    List<Map<String, Object>> listUsersByParameter(PageInfo pi,Map<String, Object> map);

    int listUsersByParameterCount(Map<String, Object> map);

    Map listAllQnTaskInfosQN(Map<String, Object> map);

    List<Map<String, Object>> getAllQnList(Map<String, Object> map);

    List<Map<String, Object>> listAllTenantQuestionnaires(PageInfo pi,Map<String, Object> map,String name);
}
